package com.ycfmedical.bed.model;

import java.util.List;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by wanglei on 2016/12/10.
 */

public class  HealthResults extends BaseModel {

    /**
     * total : 1303
     * result : [{"id":20995,"description":"这些好吃好玩的补脑零食，你值得拥有！ 相信很多人会选择奶茶，但是小编建议大家多吃麦片，最好选择纯燕麦，它其中富含纤维素，能量释放缓慢而又均衡，可使人体血糖水平一直维持在较高水平，因而不会很快感到饥饿且精神饱满","img":"http://api.avatardata.cn/Lore/Img?file=f009c92a8f274fb5881d3ca510051158.png","keywords":"零食 红薯 补脑 黑豆 营养价值 ","title":"上班族喜欢吃什么零食","loreclass":3,"time":1482730547000,"fcount":0,"count":108},{"id":20994,"description":"冬季进补吃哪些食物？吃萝卜赛过吃人参 \u201c萝卜糖\u201d缓解喉痛萝卜中含有一定的芥辣素，这让萝卜含有一种天然的辣味，加上萝卜本身就有的消炎的功能，对于冬天因感冒引起的嗓子疼、鼻塞的人，可以用萝卜来解决这些恼人的问题","img":"http://api.avatardata.cn/Lore/Img?file=6f704602cd8744cd9ab2556d4b39dfc5.jpg","keywords":"萝卜 白萝卜 可以 大白菜 缓解 ","title":"大白萝卜是很多家庭冬季餐桌上不可缺少的菜肴","loreclass":3,"time":1482730547000,"fcount":0,"count":97},{"id":20970,"description":"枸杞泡水可增强免疫力 但是要注意3大禁忌 并不是所有的人都是适合服用枸杞子的，在日常生活中一些高血压的患者以及性子比较急躁的人群最好少吃或者是别吃，因为这些人群都是属于温热身体，服用枸杞子之后容易导致内火上升，出现肝火旺盛以及上火等等情况","img":"http://api.avatardata.cn/Lore/Img?file=01849bc80aef4971b421bbac4c342740.jpg","keywords":"枸杞子 泡水 枸杞 服用 人群 ","title":"枸杞泡水可以帮助我们在寒冷的冬季增强免疫力","loreclass":3,"time":1482483052000,"fcount":0,"count":111}]
     * error_code : 0
     * reason : Succes
     */
    private int total;
    private int error_code;
    private String reason;
    private List<ResultBean> result;

    public int getTotal() {
        return total;
    }

    public List<ResultBean> getResult() {
        return result;
    }


    public static class ResultBean implements Parcelable{
        /**
         * id : 20995
         * description : 这些好吃好玩的补脑零食，你值得拥有！ 相信很多人会选择奶茶，但是小编建议大家多吃麦片，最好选择纯燕麦，它其中富含纤维素，能量释放缓慢而又均衡，可使人体血糖水平一直维持在较高水平，因而不会很快感到饥饿且精神饱满
         * img : http://api.avatardata.cn/Lore/Img?file=f009c92a8f274fb5881d3ca510051158.png
         * keywords : 零食 红薯 补脑 黑豆 营养价值
         * title : 上班族喜欢吃什么零食
         * loreclass : 3
         * time : 1482730547000
         * fcount : 0
         * count : 108
         */

        private int id;
        private String description;
        private String img;
        private String keywords;
        private String title;
        private int loreclass;
        private long time;
        private int fcount;
        private int count;

        protected ResultBean(Parcel in) {
            id = in.readInt();
            description = in.readString();
            img = in.readString();
            keywords = in.readString();
            title = in.readString();
            loreclass = in.readInt();
            time = in.readLong();
            fcount = in.readInt();
            count = in.readInt();
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(id);
            dest.writeString(description);
            dest.writeString(img);
            dest.writeString(keywords);
            dest.writeString(title);
            dest.writeInt(loreclass);
            dest.writeLong(time);
            dest.writeInt(fcount);
            dest.writeInt(count);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public static final Creator<ResultBean> CREATOR = new Creator<ResultBean>() {
            @Override
            public ResultBean createFromParcel(Parcel in) {
                return new ResultBean(in);
            }

            @Override
            public ResultBean[] newArray(int size) {
                return new ResultBean[size];
            }
        };

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getKeywords() {
            return keywords;
        }

        public void setKeywords(String keywords) {
            this.keywords = keywords;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public int getLoreclass() {
            return loreclass;
        }

        public void setLoreclass(int loreclass) {
            this.loreclass = loreclass;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }

        public int getFcount() {
            return fcount;
        }

        public void setFcount(int fcount) {
            this.fcount = fcount;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }
    }
}

